package com.auok.Entity;

import Util.Sign;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * 用户请求创建websocket连接
 */
@AllArgsConstructor
@Getter
@Setter
public class ConnectionRequest {

    /**
     * 签名
     */
    private String sign;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 时间戳
     */
    private long timestamp;


    public boolean VerifySign() {
        return Sign.VerifySign(timestamp, sign);
    }
}
